home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-08 | 3.9 KB | 115 lines |
- # File: %AppFilename%.MAMake
- # Target: %AppFilename%
- # Created %date% %time% by AppMaker
-
- # MABuild creates a .make file which
- # compiles source files as needed
- # runs Rez to create .rsrc files from .r files of the same name
- # links the object files
- # runs Rez to create resources and to copy the linked CODE
- # its output is a temporary file
- # runs PostRez to convert cmnu resources into MENU/mntb resources
- # PostRez also sets the applications type and creator
- # from its BNDL resource
- # moves the built application from the temporary folder
- # to the specified output folder.
- # optionally, runs the built application
-
- # MABuild uses this file, and the file "Build Rules and Dependencies",
- # and many MPW variables set by {MacApp}Startup as input.
-
-
- #---------------------------------------------------------------------------------------------------
- # List here the Application's Name and Creator Type
-
- AppName = %AppFilename%
- Creator = 'XXXX'
-
-
- #---------------------------------------------------------------------------------------------------
- # List any additional interfaces that your application is dependent on
- # If any of these change, then M{AppName}, U{AppName},
- # and {AppName} will be recompiled
-
- BuildingBlockIntf = ∂
- "{MAPInterfaces}UGridView.p" ∂
- "{MAPInterfaces}UTEView.p" ∂
- "{MAPInterfaces}UDialog.p" ∂
- "{MAPInterfaces}UPrinting.p"
-
-
- #---------------------------------------------------------------------------------------------------
- # Express any additional dependencies for separate compilations.
- # Include dependencies for the MacApp and Building block interfaces
- # if you are dependent on them
-
- "{ObjApp}M%AppName%.p.o"% %ƒ "{SrcApp}M%AppName%.p" ∂
- "{SrcApp}U%AppName%.p"
-
- "{ObjApp}U%AppName%.p.o"% %ƒ "{SrcApp}U%AppName%.p" ∂
- "{SrcApp}U%AppName%.inc.p" ∂
- "{SrcApp}U%AppName%Doc.p" ∂
- %for each dialog gen dependency%
- "{SrcApp}ResourceDefs.p"
-
- "{ObjApp}U%AppName%Doc.p.o"% %ƒ "{SrcApp}U%AppName%Doc.p" ∂
- "{SrcApp}U%AppName%Doc.inc.p" ∂
- %for each window gen dependency%
- "{SrcApp}ResourceDefs.p"
- %for each window gen makeDepend%
-
- %for each dialog gen makeDepend%
-
- "{ObjApp}UAMLibraryM.p.o"% %ƒ "{MAPInterfaces}UAMLibraryM.p" ∂
- "{MAPInterfaces}UAMLibraryM.inc.p"
- {MAEcho} {EchoOptions} "Compiling: UAMLibraryM.p"
- {MAPascal} ∂
- {PascalOptions} ∂
- {OtherPascalOptions} ∂
- {PascalLoadOptions} ∂
- -i "{SrcApp}" ∂
- -i "{MAPInterfaces}" ∂
- -o "{ObjApp}UAMLibraryM.p.o" ∂
- "{MAPInterfaces}"UAMLibraryM.p
-
-
- #---------------------------------------------------------------------------------------------------
- # By default MacApp.make links the above libraries, all of MacApp,
- # and the files UAppName.p.o and MAppName.p.o
- # List any additional files that your program links with:
-
- OtherLinkFiles = ∂
- "{ObjApp}UAMLibraryM.p.o" ∂
- %for each dialog gen linkFile%
- %for each window gen linkFile%
- "{ObjApp}U%AppName%Doc.p.o"
-
-
- #---------------------------------------------------------------------------------------------------
- # Specify any -sn (segment alias) linker options that you want included.
-
- OtherSegMappings = ∂
- -sn XxxxInit=GInit
-
-
- #---------------------------------------------------------------------------------------------------
- # List Rez files other than AppName.r that need to Rez'ed with the application
-
- OtherRezFiles =
-
-
- #---------------------------------------------------------------------------------------------------
- # List resource files that a Rez file includes if you want to include
- # more or less than the standard set
-
- OtherRsrcFiles = ∂
- "{SrcApp}%AppFilename%"
-
-
- #---------------------------------------------------------------------------------------------------
- # "dummy up" MAPostRez to not run PostRez. Since AppMaker already created
- # MENU/mntb resources, running PostRez is unnecessary (and harmful because
- # it deletes the existing mntb resource).
-
- MAPostRez = SetFile -t APPL -c {Creator}
-